

$(function (){

    $.fn.scroll_imgs = function (){
        var timer = 1;
        var last;
        var _this_children = $(this).children();
        var len = _this_children.length;


        setInterval(function(){
            _this_children.eq(timer).show();
            last = timer-1;
            if(last==-1) last = len-1;
            _this_children.eq(last).hide();
            timer ++;
            if(timer==len) timer = 0;
        },3000);
    }
    $("#banner_list").scroll_imgs();
    $("#banner_list2").scroll_imgs();


})
